package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.ContentCategoryDao;
import com.ericom.model.ContentCategory;
@Repository("contentCategoryDao")
public class ContentCategoryDaoHibernate extends GenericDaoHibernate<ContentCategory, Long>
		implements ContentCategoryDao {

	public ContentCategoryDaoHibernate() {
		super(ContentCategory.class);

	}

	@Override
	public List<ContentCategory> findByTitle(String title) {
		
		return this.getHibernateTemplate().find("from ContentCategory where title=?",title);
		
	}
	

}
